package com.spboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author guocb
 * @since 2020-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("smbms_role_permission")
public class RolePermission implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	@TableField("roleId")
	private Integer roleId;

	@TableField("permId")
	private Integer permId;

	public RolePermission(Integer roleId, Integer permId) {
		super();
		this.roleId = roleId;
		this.permId = permId;
	}

	public RolePermission() {
		super();
		// TODO Auto-generated constructor stub
	}

	public static final String ID = "id";

	public static final String ROLEID = "roleId";

	public static final String PERMID = "permId";

}
